package com.xzh.springCloud.service.impl;

import com.xzh.springCloud.dao.MemberDao;
import com.xzh.springCloud.entity.Member;
import com.xzh.springCloud.service.MemberService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: zhiHong
 * @CreateTime: 2023-08-24 17:17
 * @Description: memberService实现类
 */
@Service
public class MemberServiceImpl implements MemberService {
    @Resource
    private MemberDao memberDao;

    @Override
    public Member queryMemberById(Long id) {
        return memberDao.queryMemberById(id);
    }

    @Override
    public int saveMember(Member member) {
        return memberDao.saveMember(member);
    }
}
